//- Copyright (c) 2016 Lucky Byte, Inc.
extends ../layout

append scripts
  script(src="/js/merch/body.js")

block content
  form.ui.form.attached.segment.main(method="post"
    action="/merch/input/#{record.action}")
    include body

    .ui.buttons(style="margin-top:40px;")
      if page_perms.edit
        button.ui.red.button#input_delete(type="button") 删 除
      else
        button.ui.red.button.disabled#input_delete(type="button")
          i.icon.ban.grey
          | 删 除

      button.ui.yellow.button#cancel(type="button"
        onclick="window.location = '/merch'") 取 消

      if page_perms.edit
        button.ui.green.button#ok(type="submit") 确 定
      else
        button.ui.green.button.disabled#ok(type="submit")
          i.icon.ban.grey
          | 确 定
